<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function MyObj(name, price, count) {
            this.itemName = name;
            this.price = price;
            this.count = count;
        }


        let mynewItem = new MyObj("鸡翅", 11, 2);

        let mynewItem2 = new MyObj("鸡腿", 15, 1);
    </script>
</body>

</html>